class HotbooksController < ApplicationController
  def new
    @user = current_user
    @categories = Category.all
    @books = Kaminari.paginate_array(Book.search_hot_book_2(10)).page(params[:page]).per(3)
  end
end